<?php

class Sistema_Form_Login extends Zend_Form { 

    public function init() {
        
        $this->setName('form_login');

        $login = new Zend_Form_Element_Text('USU_LOGIN');
        $login->setLabel('Login:')
                ->setRequired(true)
                ->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->addValidator('NotEmpty');

        $senha = new Zend_Form_Element_Password('USU_SENHA');
        $senha->setLabel('Senha:')
                ->setRequired(true)
                ->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->addValidator('NotEmpty');

        $submit = new Zend_Form_Element_Submit('Salvar');
        $submit->setLabel('Logar')
                ->setAttrib('USU_ID', 'submitbutton');

        $this->addElements(array($login, $senha, $submit));
        
    }

}

